import java.util.ArrayList;
import java.util.HashMap;

import org.jsoup.nodes.Document;


public class PageObject 
{
	private String my_url;
	private Document my_document;
	private HashMap<Integer, Integer> my_hash_values;
	private int my_page_number;
	private int my_total_word_count;
	private int my_URL_count;
	private ArrayList<PageObject> my_visited_history = new ArrayList<PageObject>();
	private long my_average_parse_time;
	
	private ArrayList<String> my_keyword_list = new ArrayList<String>();
	private HashMap<Integer, Integer> my_keyword_map = new HashMap<Integer, Integer>();
	
	public PageObject(String the_url)
	{
		my_url = the_url;
	}
	public PageObject(String the_url, Document the_document)
	{
		my_document = the_document;
	}
	public void setAverageParseTime(long the_parse_time)
	{
		my_average_parse_time = the_parse_time;
	}
	public long getAverageParseTime()
	{
		return my_average_parse_time;
	}
	public void setUrl(String the_url)
	{
		my_url = the_url;
	}
	public String getUrl()
	{
		return my_url;
	}
	public void setDocument(Document the_document)
	{
		my_document = the_document;
	}
	public Document getDocument()
	{
		return my_document;
	}
	public void setHashMap(HashMap<Integer, Integer> the_hash_map)
	{
		my_hash_values = the_hash_map;
	}
	public HashMap<Integer, Integer> getHashMap()
	{
		return my_hash_values;
	}
	public int getPageNumber()
	{
		return my_page_number;
	}
	public void setPageNumber(int the_number)
	{
		my_page_number = the_number;
	}
	public int getTotalWordsReadAtTime()
	{
		return my_total_word_count;
	}
	public void setTotalWordsAtReadTime(int the_total_count)
	{
		my_total_word_count = the_total_count;
	}
	public void setVisitedPages(ArrayList<PageObject> the_list)
	{
		my_visited_history = the_list;
	}
	public void setTotalReadURLCount(int the_URL_count)
	{
		my_URL_count = the_URL_count;
	}
	public int getTotalURLCount()
	{
		return my_URL_count;
	}
	public ArrayList<PageObject> getVisitedPages()
	{
		return my_visited_history;
	}
	public ArrayList<String> getKeywordArray()
	{
		return my_keyword_list;
	}
	public void setKeywordArray(ArrayList<String> the_array)
	{
		my_keyword_list = the_array;
	}
	public HashMap<Integer, Integer> getKeywordMap()
	{
		return my_keyword_map;
	}
	public void setKeywordMap(HashMap<Integer, Integer> the_map)
	{
		my_keyword_map = the_map;
	}

}
